import matplotlib.pyplot as pyplot


x = range(0,100)
y = 1
result = []


for y in x:
    y = (9.8*(y**2)/2)*-1
    result.append(y)


fig,ax = pyplot.subplots()
#设置
pyplot.style.use("seaborn")
#图片参数
ax.plot(x,result,linewidth = 2)
#标题
ax.set_title("linemap",fontsize = 21)
#x轴标题
ax.set_xlabel("x",fontsize = 13)
#y轴标题
ax.set_ylabel("1/2gt^2",fontsize = 13)


#显示图表
pyplot.show()


print(result)